#! /bin/sh

sxhkd &
gnome-keyring-daemon --start --components=pkcs11 &
lxpolkit &
kbdrate -d 400 -r 50
xset r rate 400 50
xset s 3600 3600

$HOME/.fehbg
xfsettingsd &
nm-applet &
setxkbmap -layout "us,ru" -option "grp:alt_shift_toggle,grp_led:caps,ctrl:nocaps" &
xset +fp $HOME/.fonts/
compton -b &
xcalib -o eDP1 $HOME/Downloads/B140QAN02_0.icm &
# emacs --daemon &
# redshift &
xdg-user-dirs-gtk-update &

xautolock -time 15 -locker i3lock-fancy &
pkill trayer &
trayer --edge bottom --align left --heighttype pixel --height 32 --widthtype request --SetDockType false --expand true --transparent true --alpha 255 &

$HOME/bin/dunst.sh &
$HOME/bin/wm.sh &
$HOME/bin/hotplug.sh &
$HOME/bin/battery.sh -d &

bspc monitor eDP1 -d 1 2 3 4 5
bspc monitor HDMI1 -d 6 7 8 9 10

bspc config border_width         0
bspc config border_radius       10
bspc config window_gap          18

bspc config split_ratio          0.52
bspc config borderless_monocle   true
bspc config gapless_monocle      true
bspc config single_monocle     false

bspc config normal_border_color   "#212121"
bspc config active_border_color   "#545454"
bspc config focused_border_color  "#323232"
bspc config presel_feedback_color "#fb007a"

bspc config focus_follows_pointer     true
bspc config ignore_ewmh_focus         false
bspc config remove_unplugged_monitors true
bspc config remove_disabled_monitors  true

bspc rule -a Gimp desktop='^8' state=floating follow=on
bspc rule -a Chromium desktop='^1' follow=on
bspc rule -a st desktop='^2' state=floating follow=on
bspc rule -a mplayer2 state=floating
bspc rule -a mpv state=floating
bspc rule -a vlc state=floating
bspc rule -a feh state=floating
bspc rule -a lxappearance state=floating
bspc rule -a Audacious state=floating
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off

